practice problems on heights and distance